import request from '@/utils/request'

// 查询资金用途追踪列表
export function listMoneytrack(query) {
  return request({
    url: '/invert/asset/moneytrack/list',
    method: 'get',
    params: query
  })
}

// 查询资金用途追踪详细
export function getMoneytrack(id) {
  return request({
    url: '/invert/asset/moneytrack/' + id,
    method: 'get'
  })
}

// 新增资金用途追踪
export function addMoneytrack(data) {
  return request({
    url: '/invert/asset/moneytrack',
    method: 'post',
    data: data
  })
}

// 修改资金用途追踪
export function updateMoneytrack(data) {
  return request({
    url: '/invert/asset/moneytrack',
    method: 'put',
    data: data
  })
}

// 删除资金用途追踪
export function delMoneytrack(id) {
  return request({
    url: '/invert/asset/moneytrack/' + id,
    method: 'delete'
  })
}

// 导出资金用途追踪
export function exportMoneytrack(query) {
  return request({
    url: '/invert/asset/moneytrack/export',
    method: 'get',
    params: query
  })
}
